// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

// Test case that accesses a declared property ("property<bool> pressed") from within a binding for "text".
// The property will be moved to the root as part of the move declarations pass and therefore the named reference
// to "gallery_button.pressed" needs to be fixed up.
App := Rectangle {
    gallery_button := Rectangle {
        property<string> text: gallery_button.pressed ? "Button pressed" : "Button not pressed";
        property<bool> pressed: touch_area.pressed;

        touch_area := TouchArea { }
    }
}
